import { createRouter, createWebHistory } from 'vue-router'

// 定义路由规则
const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/HomeView.vue')
  },
  {
    path: '/fileEditor',
    name: 'FileEditor',
    component: () => import('../views/FileEditor.vue')
  },
]

// 创建路由器实例
const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router